package com.gui.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigInteger;
import java.util.Date;

/**
 * User
 *
 * @author guigu
 * @QQ 1170258867
 * @date 2020/5/27
 * @description gitee注册的用户信息
 */
@Data
@NoArgsConstructor
public class User {
    /**主键自动增长*/
    private int id;
    /*giteeid*/
    private String accountId;
    /*giteename*/
    private String name;
    /*唯一标识uuid*/
    private String token;
    /*创建时间*/
    private Long gmtCreate;
    /*销毁时间*/
    private Long gmtModified;
    /*user头像*/
    private String avatarUrl;

    public User(String accountId, String name, String token) {
        this.accountId = accountId;
        this.name = name;
        this.token = token;
        gmtCreate = System.currentTimeMillis();
    }

    public User(String accountId, String name, String token, String avatarUrl) {
        this.accountId = accountId;
        this.name = name;
        this.token = token;
        this.avatarUrl = avatarUrl;
    }
}
